FROM centos:7

# java
ADD openjdk-14_linux-x64_bin.tar.gz /usr/local
ENV JAVA_HOME /usr/local/jdk-14

# apacheds
ENV ADS_HOME /usr/local/apacheds
ENV PATH /usr/local/apacheds/bin:$PATH

COPY apacheds $ADS_HOME

WORKDIR /usr/local/apacheds
EXPOSE 10389
CMD ["/bin/bash", "-C", "./bin/apacheds.sh", "run"]
